package com.woniuxy.carlife.carlifeuserweb.service;

import com.woniuxy.carlife.carlifecommonsweb.exception.CarlifeGlobalException;
import com.woniuxy.carlife.carlifeuserweb.entity.ServiceInfofavorites;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author zjq
 * @ClassName:ServiceInfofavoritesService
 * @Description:门店项目服务收藏
 * @date 2021/4/6 20:02
 **/

public interface ServiceInfofavoritesService extends IService<ServiceInfofavorites> {

    /*
     * 功能描述〈查询门店项目服务收藏根据用户id〉
     * @author:zjq
     * @param:
     * @return:
     * @Date 2021/4/12 14:24
     * @throws
     */

    public List<ServiceInfofavorites> findServiceInfofavoritesByUserId(Integer userId) ;


    /*
     * 功能描述〈门店收藏删除〉
     * @author:zjq
     * @param:
     * @return:
     * @Date 2021/4/14 14:51
     * @throws
     */

    public Boolean deleteiceInfofavoritesByUserIdtServiceInfofavoritesId(Integer tServiceInfofavoritesId);


    /*
     * 功能描述〈门店收藏新增〉
     * @author:zjq
     * @param:
     * @return:
     * @Date 2021/4/14 19:18
     * @throws
     */

    public Boolean addServiceInfofavoritesByUserId(ServiceInfofavorites serviceInfofavorites);


    /*
     * 功能描述〈门店数量统计根据用户id〉
     * @author:zjq
     * @param:
     * @return:
     * @Date 2021/4/15 16:11
     * @throws
     */
    public Integer serviceInfofavoritesTotalByUserId(Integer userId);

}
